<template>
  <div id='tmpl'>
      {{id}}
  </div>
</template>
<script>
export default {
  name: "component_name",
  data () {
    return { 
        id:0,
        info:{}
    };
  },
  methods:{
      getimageinfo(imgid){
          var url=this.$common.apidomain+'/api/getimageinfo/'+imgid;
          this.$http.get(url)
              .then(res=>{
                  var data=res.body;
                  this.info=data.message[0];
                  console.log(this.info);
              })
      }
  },
  created(){
      this.id=this.$route.params.id;
      this.getimageinfo(this.id);
  }
}
</script>
<style lang="css" scoped>
</style>